#!/usr/bin/env python
####### workaround so that the module is found #######
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__),"../../src"))
######################################################

from rosparam_handler.parameter_generator_catkin import *
gen = ParameterGenerator()

# Parameters with different types
gen.add("int_param_wo_default", paramtype="int", description="An Integer parameter")
gen.add("double_param_wo_default", paramtype="double",description="A double parameter")
gen.add("str_param_wo_default", paramtype="std::string", description="A string parameter")
gen.add("bool_param_wo_default", paramtype="bool", description="A Boolean parameter")

gen.add("vector_int_param_wo_default", paramtype="std::vector<int>", description="A vector of int parameter")
gen.add("vector_double_param_wo_default", paramtype="std::vector<double>", description="A vector of double parameter")
gen.add("vector_bool_param_wo_default", paramtype="std::vector<bool>", description="A vector of bool parameter")
gen.add("vector_string_param_wo_default", paramtype="std::vector<std::string>", description="A vector of string parameter")

gen.add("map_param_wo_default", paramtype="std::map<std::string,std::string>", description="A map parameter")

gen.add_enum("enum_param_wo_default", description="enum", entry_strings=["Small", "Medium", "Large", "ExtraLarge"])

#Syntax : Package, Node, Config Name(The final name will be MyDummyConfig)
exit(gen.generate("rosparam_handler", "rosparam_handler_test", "DefaultsAtLaunch"))
